package com.card.server.constants;

import org.springframework.beans.factory.annotation.Value;

/**
 * @author TISNIW
 * @version 1.0
 * @date 2025/5/1 16:30
 * @desc JWT相关配置
 */
public class JwtConstants {
    public static final String CLAIM_USER_ID = "userId"; // 用户ID声明名
    public static final String CLAIM_USERNAME = "username"; // 昵称声明名
    public static final String CLAIM_USER_KEY = "userKey";// 用户标识符
    public static final long EXPIRATION = 604800000L; // 过期时间，默认为7天
    public static final String TOKEN_PREFIX = "Bearer "; // token前缀
    public static final String HEADER_STRING = "Authorization"; // 请求头中token的key
    public static final String ISSUER = "resume-system"; // 签发者
    public static final String SUBJECT = "resume-user"; // 主题
    public static final String TOKEN_REDIS_PREFIX = "user:token:"; // token在redis中的前缀


}
